package ch4;

import java.util.Scanner;

public class Zxf5 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("输入是否换购与购物金额换购意向");
        String a=in.next();
        int b=in.nextInt();
        if (a.equals("是")){
            int c=in.nextInt();
            int d=b+c;
            if ((b>50&&b<=100)&&(c==1)){
                System.out.println("换购500毫升可乐:"+d);
            }else if (b<=200) {
                switch (c) {
                    case 2:
                        System.out.println("换购1000毫升果汁:" + d);
                        break;
                    case 4:
                        System.out.println("换购炫迈口香糖:" + d);
                        break;
                }
            }else if (b>200) {
                switch (c) {
                    case 38:
                        System.out.println("换购一瓶进口红酒:" + d);
                        break;
                    case 15:
                        System.out.println("换购1袋面粉:"+d);
                }
            }

        }else {
            System.out.println("不换购："+b);
        }

    }
}
